9313a42e0a8b52d4fa9814c1e87bce0a19ec8004,core/src/main/java/org/yes/cart/promotion/impl/action/OrderGiftPromotionAction.java,OrderGiftPromotionAction,getGiftPrices,#String#ShoppingCart#,99
Before Change
return priceService.getMinimalPrice(
null,
sku,
cart.getShoppingContext().getShopId(),
cart.getCurrencyCode(),
BigDecimal.ONE, false, null);
} catch (Exception exp) {
After Change
private SkuPrice getGiftPrices(final String sku, final ShoppingCart cart) {
try {
final long customerShopId = cart.getShoppingContext().getCustomerShopId();
final long masterShopId = cart.getShoppingContext().getShopId();
// Fallback only if we have a B2B non-strict mode
final Long fallbackShopId = masterShopId == customerShopId || shopService.getById(customerShopId).isB2BStrictPriceActive() ? null : masterShopId;
return priceService.getMinimalPrice(
null,